import service from '@/utils/request'

export const useOrderDispatchOrderApi = (id: number) => {
	return service.get('/ss/dispatch-order/' + id)
}

export const useOrderDispatchOrderSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/ss/dispatch-order', dataForm)
	} else {
		return service.post('/ss/dispatch-order', dataForm)
	}
}